package com.classes.accessflags;

import java.nio.ByteBuffer;

import com.classes.CMN;

public class AccessFlag {

    /**
     * 访问标识
     *
     * @param buffer
     * @return
     */
    public static void accessFlag(ByteBuffer buffer) {
        short flag = buffer.getShort();

        System.out.print("访问标识：" + flag);
        CMN.init();
        int[] is = CMN.classAccessFlagMap.get(flag + "");
        for (int i : is) {
            System.out.print(" " + AccessFlagsEnum.getAccessFlag(i) + ", ");
        }
        System.out.println();
    }
}
